package com.sangeng.domain;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * 登录入参dto
 */
public class LoginRequest implements Serializable {
    private static final long serialVersionUID = 1L;
    @NotBlank(message = "用户名不能为空")
    private String username;

    @NotBlank(message = "密码不能为空")
    private String password;

    @NotBlank(message = "验证码不能为空")
    private String captcha;

    @NotBlank(message = "验证码uuid不能为空")
    private String captchaUUID;

    // Getters and Setters
    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getCaptcha() {
        return captcha;
    }

    public void setCaptcha(String captcha) {
        this.captcha = captcha;
    }

    public String getcaptchaUUID() {
        return captchaUUID;
    }

    public void setcaptchaUUID(String captchaUUID) {
        this.captchaUUID = captchaUUID;
    }

    @Override
    public String toString() {
        return "LoginRequest{" +
                "username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", captcha='" + captcha + '\'' +
                ", captchaUUID='" + captchaUUID + '\'' +
                '}';
    }
}
